def _remove_dupe_flags( self ):
        """
        if multiple instances of Debug is used in same app, 
        some flags might be created multiple time, filter out dupes
        """
        unique_flags = []
        for f in self.debug_flags:
            if f not in unique_flags:
                unique_flags.append(f)
        self.debug_flags = unique_flags

        if multiple instances of Debug is used in same app, 
        some flags might be created multiple time, filter out dupes
        
chrome-cordova/gcmServer/xmpp/debug.py