Skip to content

Commit

Permalink
Removed all the unused variables. (#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbemiller authored and Matt Kendall committed Jul 31, 2017
1 parent 6069d9b commit 940295f
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 20 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ module.exports = {
"no-return-assign": "off",
"no-throw-literal": "off",
"no-undef": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"no-useless-call": "off",
"no-useless-escape": "off",
Expand Down
5 changes: 0 additions & 5 deletions modules/indexExchangeBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,15 +425,11 @@ var IndexExchangeAdapter = function IndexExchangeAdapter() {
// Our standard is to always bid for all known slots.
cygnus_index_args.slots = [];

var expectedBids = 0;

// Grab the slot level data for cygnus_index_args
for (var i = 0; i < bidArr.length; i++) {
var bid = bidArr[i];
var sizeID = 0;

expectedBids++;

// Expecting nested arrays for sizes
if (!(bid.sizes[0] instanceof Array)) {
bid.sizes = [bid.sizes];
Expand Down Expand Up @@ -551,7 +547,6 @@ var IndexExchangeAdapter = function IndexExchangeAdapter() {

try {
var indexObj = _IndexRequestData.targetIDToBid;
var lookupObj = cygnus_index_args;

// Grab all the bids for each slot
for (var adSlotId in slotIdMap) {
Expand Down
4 changes: 0 additions & 4 deletions modules/memeglobalBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ var bidmanager = require('src/bidmanager.js');
var adloader = require('src/adloader');
var adaptermanager = require('src/adaptermanager');

var defaultPlacementForBadBid = null;
var bidderName = 'memeglobal';
/**
* Adapter for requesting bids from Meme Global Media Group
Expand All @@ -19,9 +18,6 @@ var MemeGlobalAdapter = function MemeGlobalAdapter() {

if (!bids) return;

// assign the first adUnit (placement) for bad bids;
defaultPlacementForBadBid = bids[0].placementCode;

for (var i = 0; i < bids.length; i++) {
_requestBid(bids[i]);
}
Expand Down
1 change: 0 additions & 1 deletion modules/mobfoxBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const bidfactory = require('src/bidfactory.js');
const bidmanager = require('src/bidmanager.js');
const adloader = require('src/adloader');
const ajax = require('src/ajax.js');
const CONSTANTS = require('src/constants.json');
const utils = require('src/utils.js');
Expand Down
3 changes: 0 additions & 3 deletions modules/rhythmoneBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ function RhythmoneAdapter (bidManager, global, loader) {
defaultZone = '1r',
defaultPath = 'mvo',
debug = false,
requestCompleted = false,
placementCodes = {},
loadStart,
configuredPlacements = [],
Expand Down Expand Up @@ -245,8 +244,6 @@ function RhythmoneAdapter (bidManager, global, loader) {
// send quality control beacon here
sendAuditBeacon(bidParams.placementId);

requestCompleted = true;

logToConsole('response text: ' + txt);

if (code !== -1) {
Expand Down
1 change: 0 additions & 1 deletion modules/roxotAnalyticsAdapter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {ajax} from 'src/ajax';
import adapter from 'src/AnalyticsAdapter';
import CONSTANTS from 'src/constants.json';
import adaptermanager from 'src/adaptermanager';
Expand Down
1 change: 0 additions & 1 deletion modules/ucfunnelBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as Adapter from 'src/adapter.js';
import bidfactory from 'src/bidfactory';
import bidmanager from 'src/bidmanager';
import * as utils from 'src/utils';
Expand Down
5 changes: 1 addition & 4 deletions src/AnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const LIBRARY = 'library';
const ENDPOINT = 'endpoint';
const BUNDLE = 'bundle';

var _timedOutBidders = [];
var _sampled = true;

export default function AnalyticsAdapter({ url, analyticsType, global, handler }) {
Expand Down Expand Up @@ -91,9 +90,7 @@ export default function AnalyticsAdapter({ url, analyticsType, global, handler }

const { eventType, args } = event;

if (eventType === BID_TIMEOUT) {
_timedOutBidders = args.bidderCode;
} else {
if (eventType !== BID_TIMEOUT) {
_enqueue.call(_this, { eventType, args });
}
});
Expand Down

0 comments on commit 940295f

Please sign in to comment.