]> granicus.if.org Git - clang/commitdiff
Remove unused method Job::AddCommand.
authorHans Wennborg <hans@hanshq.net>
Fri, 6 Sep 2013 16:48:57 +0000 (16:48 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 6 Sep 2013 16:48:57 +0000 (16:48 +0000)
I was going to update the comment referring to PipedJob, which was removed
some time ago, but then it turned out that this method is not actually used
at all.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190171 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Job.h
lib/Driver/Job.cpp

index b9a732db3b32a5b2e1fb38943e048d317d382cee..68d6a66baabb9f6cb31fe1945694828e613597ef 100644 (file)
@@ -38,10 +38,6 @@ public:
   virtual ~Job();
 
   JobClass getKind() const { return Kind; }
-
-  /// addCommand - Append a command to the current job, which must be
-  /// either a piped job or a job list.
-  void addCommand(Command *C);
 };
 
   /// Command - An executable path/name and argument vector to
index 61e7d983035ca62b61573d9b8ef0cdbe42bbfcd8..2906ef9290e03d1d9eb85fb72db7c7a8299e7144 100644 (file)
@@ -32,8 +32,3 @@ JobList::~JobList() {
 void JobList::clear() {
   DeleteContainerPointers(Jobs);
 }
-
-void Job::addCommand(Command *C) {
-  cast<JobList>(this)->addJob(C);
-}
-