Removed the weird glyph.getGlyph(glyphName) method.

git-svn-id: http://svn.robofab.com/branches/ufo3k@537 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
This commit is contained in:
Tal Leming 2011-12-29 22:11:11 +00:00
parent 75f3ef6bbe
commit 2046f68815

View File

@ -554,14 +554,6 @@ class BaseGlyph(RBaseObject):
pass pass
return "<RGlyph for %s.%s>" %(font, glyph) return "<RGlyph for %s.%s>" %(font, glyph)
def getGlyph(self, glyphName):
"""Provided there is a font parent for this glyph, return a sibling glyph."""
if glyphName == self.name:
return self
if self.getParent() is not None:
return self.getParent()[glyphName]
return None
def _saveToGlyphSet(self, glyphSet, glyphName=None, force=False): def _saveToGlyphSet(self, glyphSet, glyphName=None, force=False):
"""Save the glyph to GlyphSet, a private method that's part of the saving process.""" """Save the glyph to GlyphSet, a private method that's part of the saving process."""
# save stuff in the lib first # save stuff in the lib first