summaryrefslogtreecommitdiff
path: root/plugins/python/androperms/stack.py
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-05-28 12:57:34 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-05-28 12:57:34 (GMT)
commited70a0bacfdca738ba29d50e9f1b02290f28b9b8 (patch)
treed97b9bc9d7a5baa3c73436921ddee12b4f8e2610 /plugins/python/androperms/stack.py
parentbfaf16a1957cdbc58f92ee8859551661c3c0dcce (diff)
Removed the old Python plugin reading android permissions.
Diffstat (limited to 'plugins/python/androperms/stack.py')
-rw-r--r--plugins/python/androperms/stack.py108
1 files changed, 0 insertions, 108 deletions
diff --git a/plugins/python/androperms/stack.py b/plugins/python/androperms/stack.py
deleted file mode 100644
index 38431dc..0000000
--- a/plugins/python/androperms/stack.py
+++ /dev/null
@@ -1,108 +0,0 @@
-#!/usr/bin/python -u
-# -*- coding: utf-8 -*-
-
-
-class NamespaceStack():
-
-
- def __init__(self):
-
- # self.increaseDepth()
-
-
- self._depth = 1
-
- self._prefix_2_uri = {}
- self._uri_2_prefix = {}
-
- self._pairs = []
-
- pass
-
-
-
- def getDepth(self):
-
- return self._depth
-
-
- def incDepth(self):
-
- self._depth += 1
-
-
- def decDepth(self):
-
- self._depth -= 1
-
-
-
-
-
- def count(self):
- """Provider the current number of active namespaces."""
-
- return len(self._pairs)
-
-
-
-
-
-
-
- def push(self, prefix, uri):
-
- self._prefix_2_uri[prefix] = uri
- self._uri_2_prefix[uri] = prefix
-
- self._pairs.append((prefix, uri))
-
- #print "PUSH", prefix, uri
-
-
-
-
- def pop(self):
-
- self._pairs.pop()
-
- #print "POP"
-
-
-
-
-
- def getPrefix(self, index):
-
- if index < len(self._pairs):
- return self._pairs[index][0]
-
- else:
- return -1
-
-
- def findPrefix(self, uri):
-
- if uri in self._uri_2_prefix:
- return self._uri_2_prefix[uri]
-
- else:
- return -1
-
-
- def getUri(self, index):
-
- if index < len(self._pairs):
- return self._pairs[index][1]
-
- else:
- return -1
-
-
- def findUri(self, prefix):
-
- if prefix in self._prefix_2_uri:
- return self._prefix_2_uri[prefix]
-
- else:
- return -1