@@ -2062,8 +2062,6 @@ exports.storeScript = function (aUser, aMeta, aBuf, aUpdate, aCallback) {
20622062 var now = null ;
20632063
20642064 var storeDescriptionLength = null ;
2065- var includes = null ;
2066- var matches = null ;
20672065
20682066 if ( aRemoved ) {
20692067 aCallback ( new statusError ( {
@@ -2087,8 +2085,6 @@ exports.storeScript = function (aUser, aMeta, aBuf, aUpdate, aCallback) {
20872085 // New script
20882086 now = new Date ( ) ;
20892087
2090- includes = findMeta ( aMeta , 'UserScript.include.value' ) ;
2091- matches = findMeta ( aMeta , 'UserScript.match.value' ) ;
20922088
20932089 storeDescriptionLength = settings . scriptSearchQueryStoreMaxDescription ;
20942090 storeDescriptionLength = rLogographic . test ( thisDescription )
@@ -2115,8 +2111,6 @@ exports.storeScript = function (aUser, aMeta, aBuf, aUpdate, aCallback) {
21152111 installName : installName ,
21162112 fork : null ,
21172113 meta : aMeta ,
2118- _pattern : ( ( includes ? includes . join ( ' ' ) : '' ) + ' '
2119- + ( matches ? matches . join ( ' ' ) : '' ) ) . trim ( ) ,
21202114 isLib : isLib ,
21212115 uses : isLib ? null : libraries ,
21222116 _authorId : aUser . _id
@@ -2153,13 +2147,6 @@ exports.storeScript = function (aUser, aMeta, aBuf, aUpdate, aCallback) {
21532147 : ''
21542148 ) ;
21552149 aScript . meta = aMeta ;
2156-
2157- includes = findMeta ( aMeta , 'UserScript.include.value' ) ;
2158- matches = findMeta ( aMeta , 'UserScript.match.value' ) ;
2159-
2160- aScript . _pattern = ( ( includes ? includes . join ( ' ' ) : '' ) + ' '
2161- + ( matches ? matches . join ( ' ' ) : '' ) ) . trim ( )
2162-
21632150 aScript . uses = libraries ;
21642151
21652152 // Okay to update
0 commit comments