Skip to content

Commit

Permalink
Drop queryOptions
Browse files Browse the repository at this point in the history
Appears to be completely replaced by the QueryStore in 'compass/src/internal-packages/query/lib/store/query-store.js'
  • Loading branch information
pzrq committed Dec 16, 2016
1 parent beddc90 commit 968b3af
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 88 deletions.
14 changes: 0 additions & 14 deletions src/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ var NetworkOptInView = require('./network-optin');
var format = require('util').format;
var semver = require('semver');

var QueryOptions = require('./models/query-options');
var Connection = require('./models/connection');
var MongoDBInstance = require('./models/mongodb-instance');
var Preferences = require('./models/preferences');
Expand Down Expand Up @@ -128,8 +127,6 @@ function getConnection(model, done) {
* @example
* // Drive Compass from the chrome devtools console using the `app` window global:
* console.log(app);
* // What are the current query options?
* console.log('Query options are', app.queryOptions);
* // Make API calls to `mongodb-scope-server` via `mongodb-scope-client`:
* app.dataService.instance(function(err, data){
* if(err) return console.error(err);
Expand Down Expand Up @@ -175,10 +172,6 @@ var Application = View.extend({
* Details of the MongoDB Instance we're currently connected to.
*/
instance: 'state',
/**
* query options in sync with the data, @see models/query-options.js
*/
queryOptions: 'state',
/**
* @see http://learn.humanjavascript.com/react-ampersand/creating-a-router-and-pages
*/
Expand Down Expand Up @@ -423,7 +416,6 @@ app.extend({
ApplicationStore.dataService = app.dataService;

debug('initializing singleton models... ');
state.queryOptions = new QueryOptions();
state.instance = new MongoDBInstance();
debug('fetching instance model...');
app.instance.fetch({success: state.onInstanceFetched});
Expand Down Expand Up @@ -474,12 +466,6 @@ Object.defineProperty(app, 'instance', {
}
});

Object.defineProperty(app, 'queryOptions', {
get: function() {
return state.queryOptions;
}
});

Object.defineProperty(app, 'preferences', {
get: function() {
return state.preferences;
Expand Down
74 changes: 0 additions & 74 deletions src/app/models/query-options.js

This file was deleted.

0 comments on commit 968b3af

Please sign in to comment.