瀏覽代碼

removed date in generated files

Simon Van Mierlo 7 年之前
父節點
當前提交
4941b04bad

+ 0 - 9
examples/my-tests/python/else_transition.py

@@ -1,8 +1,6 @@
 """
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 
-Date:   Wed May 30 12:03:02 2018
-
 Model name:   else_transition_test
 
 """
@@ -96,10 +94,6 @@ class A(RuntimeClassBase):
         _main_one_A_1.setTrigger(Event("a", None))
         _main_one_A_1.setGuard(self._main_one_A_1_guard)
         self.states["/main/one/A"].addTransition(_main_one_A_1)
-        _main_one_A_2 = Transition(self, self.states["/main/one/A"], [self.states["/main/one/D"]])
-        _main_one_A_2.setTrigger(None)
-        _main_one_A_2.setGuard(self._main_one_A_2_guard)
-        self.states["/main/one/A"].addTransition(_main_one_A_2)
         
         # transition /main/one/B
         _main_one_B_0 = Transition(self, self.states["/main/one/B"], [self.states["/main/one/A"]])
@@ -140,9 +134,6 @@ class A(RuntimeClassBase):
     def _main_one_A_1_guard(self, parameters):
         return "ELSE_GUARD"
     
-    def _main_one_A_2_guard(self, parameters):
-        return "ELSE_GUARD"
-    
     def _main_two_A_0_exec(self, parameters):
         self.raiseInternalEvent(Event("a", None, []))
     

+ 1 - 3
src/python_sccd/python_sccd_compiler/generic_generator.py

@@ -28,9 +28,7 @@ class GenericGenerator(Visitor):
         return self.writer.get()
 
     def visit_ClassDiagram(self, class_diagram):
-        header = ("Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)\n"
-                  "\n"
-                  "Date:   " + time.asctime() + "\n")
+        header = ("Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)\n")
         if class_diagram.name or class_diagram.author or class_diagram.description:
             header += "\n"
         if class_diagram.author: