From a2f5bd532ed5a728a8d37eb39b14a590575920ff Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 21 Aug 2008 18:30:01 +0000 Subject: [PATCH] In this case I think the helper function reduces clarity rather than adds. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@643 ed5b42cb-e716-0410-a449-f6a68f950b19 --- .../cast/bundle/BundledComponentRepository.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/java/com/threerings/cast/bundle/BundledComponentRepository.java b/src/java/com/threerings/cast/bundle/BundledComponentRepository.java index cc99ec37..3a5faadb 100644 --- a/src/java/com/threerings/cast/bundle/BundledComponentRepository.java +++ b/src/java/com/threerings/cast/bundle/BundledComponentRepository.java @@ -93,7 +93,8 @@ public class BundledComponentRepository ResourceBundle[] rbundles = rmgr.getResourceSet(name); if (rbundles == null) { // Couldn't find a bundle with that name, so just make empty maps for safe enumerating - fillInWithEmptyMaps(); + _actions = Maps.newHashMap(); + _classes = Maps.newHashMap(); return; } @@ -148,11 +149,6 @@ public class BundledComponentRepository // if we failed to load our classes or actions, create empty hashtables so that we can // safely enumerate our emptiness - fillInWithEmptyMaps(); - } - - protected void fillInWithEmptyMaps(){ - if (_actions == null) { _actions = Maps.newHashMap(); }