From: Hans Wennborg Date: Fri, 6 Sep 2013 16:48:57 +0000 (+0000) Subject: Remove unused method Job::AddCommand. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=535ae75f7b02b0d7adf76ed18f7f045efd54947c;p=clang Remove unused method Job::AddCommand. 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 --- diff --git a/include/clang/Driver/Job.h b/include/clang/Driver/Job.h index b9a732db3b..68d6a66baa 100644 --- a/include/clang/Driver/Job.h +++ b/include/clang/Driver/Job.h @@ -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 diff --git a/lib/Driver/Job.cpp b/lib/Driver/Job.cpp index 61e7d98303..2906ef9290 100644 --- a/lib/Driver/Job.cpp +++ b/lib/Driver/Job.cpp @@ -32,8 +32,3 @@ JobList::~JobList() { void JobList::clear() { DeleteContainerPointers(Jobs); } - -void Job::addCommand(Command *C) { - cast(this)->addJob(C); -} -