Bug 1320835 - Remove unused _getcallerpath from IPDL's parser.py. r=kanru
authorAndrew McCreight <continuation@gmail.com>
Mon, 28 Nov 2016 14:47:57 -0800
changeset 324674 69842f0e5150f11849fe37773e8a15abc9a496e6
parent 324673 918309d4aea0210855b4b531452b2b8182a9c501
child 324675 de1a1ae3cab63677724436d98f8d166b5557fac5
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewerskanru
bugs1320835
milestone53.0a1
Bug 1320835 - Remove unused _getcallerpath from IPDL's parser.py. r=kanru MozReview-Commit-ID: APiXElSQGQ1
ipc/ipdl/ipdl/parser.py
--- a/ipc/ipdl/ipdl/parser.py
+++ b/ipc/ipdl/ipdl/parser.py
@@ -2,21 +2,16 @@
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 import os, sys
 from ply import lex, yacc
 
 from ipdl.ast import *
 
-def _getcallerpath():
-    '''Return the absolute path of the file containing the code that
-**CALLED** this function.'''
-    return os.path.abspath(sys._getframe(1).f_code.co_filename)
-
 ##-----------------------------------------------------------------------------
 
 class ParseError(Exception):
     def __init__(self, loc, fmt, *args):
         self.loc = loc
         self.error = ('%s%s: error: %s'% (
             Parser.includeStackString(), loc, fmt)) % args
     def __str__(self):