Skip to content

Commit 7a440b8

Browse files
committed
remove commented out code
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
1 parent 7a8c543 commit 7a440b8

File tree

2 files changed

+2
-181
lines changed

2 files changed

+2
-181
lines changed

logback-core/src/main/java/ch/qos/logback/core/joran/spi/SaxEventInterpretationContext.java

Lines changed: 0 additions & 181 deletions
Original file line numberDiff line numberDiff line change
@@ -33,131 +33,20 @@
3333
* @author Ceki G&uuml;lc&uuml;
3434
*/
3535
public class SaxEventInterpretationContext extends ContextAwareBase implements PropertyContainer {
36-
// Stack<Object> xobjectStack;
3736
Stack<Model> modelStack;
38-
// Stack<ImplicitActionDataBase> implicitActionDataStack;
39-
40-
// Map<String, Object> objectMap;
41-
// Map<String, String> propertiesMap;
42-
// Map<String, String> importMap;
43-
44-
// final HashMap<Model, List<String>> dependenciesMap = new HashMap<>();
45-
// final List<String> startedDependencies = new ArrayList<>();
4637

4738
SaxEventInterpreter saxEventInterpreter;
48-
// DefaultNestedComponentRegistry defaultNestedComponentRegistry = new DefaultNestedComponentRegistry();
49-
// private BeanDescriptionCache beanDescriptionCache;
5039

5140
public SaxEventInterpretationContext(Context context, SaxEventInterpreter saxEventInterpreter) {
5241
this.context = context;
5342
this.saxEventInterpreter = saxEventInterpreter;
54-
// this.objectStack = new Stack<>();
5543
this.modelStack = new Stack<>();
56-
// this.implicitActionDataStack = new Stack<>();
57-
58-
// objectMap = new HashMap<>(5);
59-
// propertiesMap = new HashMap<>(5);
60-
// importMap = new HashMap<>(5);
6144
}
6245

63-
// public BeanDescriptionCache getBeanDescriptionCache() {
64-
// if (beanDescriptionCache == null) {
65-
// beanDescriptionCache = new BeanDescriptionCache(getContext());
66-
// }
67-
// return beanDescriptionCache;
68-
// }
69-
//
70-
// public DefaultNestedComponentRegistry getDefaultNestedComponentRegistry() {
71-
// return defaultNestedComponentRegistry;
72-
// }
73-
74-
// public Map<String, String> getCopyOfPropertyMap() {
75-
// return new HashMap<String, String>(propertiesMap);
76-
// }
77-
//
78-
// void setPropertiesMap(Map<String, String> propertiesMap) {
79-
// this.propertiesMap = propertiesMap;
80-
// }
81-
82-
// public HashMap<Model, List<String>> getDependenciesMap() {
83-
// return dependenciesMap;
84-
// }
85-
86-
// public void addDependency(Model model, String ref) {
87-
// List<String> refList = dependenciesMap.get(model);
88-
// if(refList == null) {
89-
// refList = new ArrayList<>();
90-
// }
91-
// refList.add(ref);
92-
// dependenciesMap.put(model, refList);
93-
// }
94-
95-
// public List<String> getDependencies(Model model) {
96-
// return dependenciesMap.get(model);
97-
// }
98-
99-
// public String getLineNumber() {
100-
// if(saxEventInterpreter == null) {
101-
// return "NA";
102-
// }
103-
// Locator locator = saxEventInterpreter.getLocator();
104-
//
105-
// if (locator != null) {
106-
// return Integer.toString(locator.getLineNumber());
107-
// } else {
108-
// return "NA";
109-
// }
110-
// }
111-
11246
public SaxEventInterpreter getSaxEventInterpreter() {
11347
return saxEventInterpreter;
11448
}
11549

116-
// public Stack<Object> getObjectStack() {
117-
// return objectStack;
118-
// }
119-
120-
// /**
121-
// * @deprecated Use {@link isObjectStackEmpty isObjectStackEmpty()} method
122-
// * instead
123-
// * @return
124-
// */
125-
// public boolean isEmpty() {
126-
// return isObjectStackEmpty();
127-
// }
128-
129-
// /**
130-
// *
131-
// * @return whether the objectStack is empty or not
132-
// */
133-
// public boolean isObjectStackEmpty() {
134-
// return objectStack.isEmpty();
135-
// }
136-
//
137-
// public Object peekObject() {
138-
// return objectStack.peek();
139-
// }
140-
//
141-
// public void pushObject(Object o) {
142-
// objectStack.push(o);
143-
// }
144-
//
145-
// public Object popObject() {
146-
// return objectStack.pop();
147-
// }
148-
149-
/**
150-
* actionDataStack contains ActionData instances We use a stack of ActionData
151-
* objects in order to support nested elements which are handled by the same
152-
* NestedComplexPropertyIA instance. We push a ActionData instance in the
153-
* isApplicable method (if the action is applicable) and pop it in the end()
154-
* method. The XML well-formedness property will guarantee that a push will
155-
* eventually be followed by a corresponding pop.
156-
*/
157-
// public Stack<ImplicitActionDataBase> getImplcitActionDataStack() {
158-
// return implicitActionDataStack;
159-
// }
160-
//
16150
/**
16251
* Return the Model at the top of the model stack, may return null.
16352
*
@@ -188,38 +77,6 @@ public Stack<Model> getCopyOfModelStack() {
18877
return copy;
18978
}
19079

191-
// public Object getObject(int i) {
192-
// return objectStack.get(i);
193-
// }
194-
195-
// public Map<String, Object> getObjectMap() {
196-
// return objectMap;
197-
// }
198-
199-
// /**
200-
// * Add a property to the properties of this execution context. If the property
201-
// * exists already, it is overwritten.
202-
// */
203-
// public void addSubstitutionProperty(String key, String value) {
204-
// if (key == null || value == null) {
205-
// return;
206-
// }
207-
// // values with leading or trailing spaces are bad. We remove them now.
208-
// value = value.trim();
209-
// propertiesMap.put(key, value);
210-
// }
211-
212-
// public void addSubstitutionProperties(Properties props) {
213-
// if (props == null) {
214-
// return;
215-
// }
216-
// for (Object keyObject : props.keySet()) {
217-
// String key = (String) keyObject;
218-
// String val = props.getProperty(key);
219-
// addSubstitutionProperty(key, val);
220-
// }
221-
// }
222-
22380
/**
22481
* If a key is found in propertiesMap then return it. Otherwise, delegate to the
22582
* context.
@@ -246,42 +103,4 @@ public String subst(String value) {
246103
}
247104
}
248105

249-
// public void markStartOfNamedDependency(String name) {
250-
// startedDependencies.add(name);
251-
// }
252-
// public boolean isNamedDependencyStarted(String name) {
253-
// return startedDependencies.contains(name);
254-
// }
255-
256-
// /**
257-
// * Add an import to the importMao
258-
// * @param stem the class to import
259-
// * @param fqcn the fully qualified name of the class
260-
// *
261-
// * @since 1.3
262-
// */
263-
// public void addImport(String stem, String fqcn) {
264-
// importMap.put(stem, fqcn);
265-
// }
266-
//
267-
// /**
268-
// * Given a stem, get the fully qualified name of the class corresponding to the stem.
269-
// * For unknown stems, returns the stem as is. If stem is null, null is returned.
270-
// *
271-
// * @param stem may be null
272-
// * @return fully qualified name of the class corresponding to the stem. For unknown stems, returns the stem as is.
273-
// * If stem is null, null is returned.
274-
// * @since 1.3
275-
// */
276-
// public String getImport(String stem) {
277-
// if(stem == null)
278-
// return null;
279-
//
280-
// String result = importMap.get(stem);
281-
// if(result == null)
282-
// return stem;
283-
// else
284-
// return result;
285-
// }
286-
287106
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package ch.qos.logback.core.model.processor;public class XMLIncludeModelHandler {
2+
}

0 commit comments

Comments
 (0)