Remove unused depgraph.match() method.
authorZac Medico <zmedico@gentoo.org>
Sat, 9 Dec 2006 03:05:52 +0000 (03:05 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 9 Dec 2006 03:05:52 +0000 (03:05 -0000)
svn path=/main/trunk/; revision=5233

bin/emerge

index 1df00966a30d13cbd6944660367e4e6b896b7299..768fc23d2746ec33ed4699a3f11baa3c2e06cbed 100755 (executable)
@@ -1720,38 +1720,6 @@ class depgraph:
 
                return 1
 
-       def match(self, mydep, myroot=None, mykey=None):
-               # support mutual exclusive deps
-               if myroot is None:
-                       myroot = self.target_root
-               mydep2=mydep
-               if mydep2[0]=="!":
-                       mydep2=mydep[1:]
-
-               if mydep[0]=="!":
-                       #add our blocker; it will be ignored later if necessary (if we are remerging the same pkg, for example)
-                       myk="blocks "+myroot+" "+mydep2
-               else:
-                       myeb = self.trees[myroot]["porttree"].dep_bestmatch(mydep2)
-                       if not myeb:
-                               if not mykey:
-                                       print "\n!!! Error: couldn't find match for",mydep
-                               else:
-                                       print "\n!!! Error: couldn't find match for",mydep,"in",mykey
-                               print
-                               sys.exit(1)
-
-                       if "--usepkg" in self.myopts:
-                               mypk = self.trees[myroot]["bintree"].dep_bestmatch(mydep)
-                               if myeb==mypk:
-                                       myk = " ".join(("binary", myroot, mypk))
-                               else:
-                                       myk = " ".join(("ebuild", myroot, myeb))
-                       else:
-                               myk="ebuild "+myroot+" "+myeb
-
-               return myk
-
        def display(self,mylist,verbosity=None):
                if verbosity is None:
                        verbosity = ("--quiet" in self.myopts and 1 or \