def generate(self, dest_dir = '.', file_name='Rte_Type.h'):
      """
      Generates Rte_Type.h
      Note: The last argument has been deprecated and is no longer in use
      """
      if self.partition.isFinalized == False:
         self.partition.finalize()
      file_path = os.path.join(dest_dir, file_name)
      with io.open(file_path, 'w', newline='\n') as fp:
         hfile=C.hfile(file_name)
         hfile.code.extend([C.line(x) for x in _genCommentHeader('Includes')])
         hfile.code.append(C.include("Std_Types.h"))
         hfile.code.append(C.blank())
         (basicTypes,complexTypes,modeTypes) = self.partition.types.getTypes()
         hfile.code.extend([C.line(x) for x in _genCommentHeader('Data Type Definitions')])
         hfile.code.append(C.blank())
         ws = self.partition.ws
         unusedDefaultTypes = self._findUnusedDefaultTypes(ws, basicTypes)