[asterisk-scf-commits] asterisk-scf/integration/ice.git branch "review/generate-pragma-once" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Feb 8 13:45:56 CST 2012


branch "review/generate-pragma-once" has been updated
       via  5ddcbfbe203f1951ad0b209a9e873914eb2db5ac (commit)
      from  75623b70a465fef07b0acf5380b51274892894c9 (commit)

Summary of changes:
 cpp/src/slice2cpp/Gen.cpp |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)


- Log -----------------------------------------------------------------
commit 5ddcbfbe203f1951ad0b209a9e873914eb2db5ac
Author: Kevin P. Fleming <kpfleming at digium.com>
Date:   Wed Feb 8 13:38:28 2012 -0600

    Eliminate unnecessary variable and function call.

diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 732ed74..ae45c16 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -245,12 +245,6 @@ Slice::Gen::generate(const UnitPtr& p)
         }
         FileTracker::instance()->addFile(fileImplC);
 
-        string s = fileImplH;
-        if(_include.size())
-        {
-            s = _include + '/' + s;
-        }
-        transform(s.begin(), s.end(), s.begin(), ToIfdef());
         implH << "#pragma once\n";
     }
 

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/ice.git



More information about the asterisk-scf-commits mailing list