[Pkg-mozext-commits] [requestpolicy] 48/100: [refactoring] rename RuleSet to Rules
David Prévot
taffit at moszumanska.debian.org
Fri Dec 12 22:56:56 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit 050ec75e5adf33deb7f21d24619d27eebffefdda
Author: myrdd <myrdd at users.noreply.github.com>
Date: Sat Oct 4 00:31:06 2014 +0200
[refactoring] rename RuleSet to Rules
---
src/modules/Policy.jsm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/modules/Policy.jsm b/src/modules/Policy.jsm
index b53a935..14f586c 100644
--- a/src/modules/Policy.jsm
+++ b/src/modules/Policy.jsm
@@ -481,11 +481,11 @@ RuleIterator.prototype.next = function() {
}
-function RuleSet() {
+function Rules() {
this._rules = [];
}
-RuleSet.prototype = {
+Rules.prototype = {
_rules : null,
print : function(depth) {
@@ -645,7 +645,7 @@ function DomainEntry(name, fullName, higher) {
this.fullName = fullName;
this._higher = higher;
this._lower = {};
- this.rules = new RuleSet();
+ this.rules = new Rules();
}
DomainEntry.prototype = {
@@ -693,7 +693,7 @@ DomainEntry.prototype = {
function IPAddressEntry(address) {
this.address = address;
- this.rules = new RuleSet();
+ this.rules = new Rules();
}
IPAddressEntry.prototype = {
@@ -725,7 +725,7 @@ function Policy(name) {
// its own rules. Non-host-specific rules go in |this.rules|.
this._domain = new DomainEntry(null, null, null);
this._ipAddr = {};
- this.rules = new RuleSet();
+ this.rules = new Rules();
}
// TODO: remove
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list