Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

cleanup module imports #1394

Merged
merged 2 commits into from
Nov 7, 2016
Merged

cleanup module imports #1394

merged 2 commits into from
Nov 7, 2016

Conversation

luclu
Copy link
Contributor

@luclu luclu commented Nov 7, 2016

No description provided.

@mention-bot
Copy link

@luclu, thanks for your PR! By analyzing the history of the files in this pull request, we identified @hiddentao, @frozeman and @ChihChengLiang to be potential reviewers.

require('../openExternal.js');
require('./include/getFavicon.js');
require('./include/getMetaTags.js');
require('./include/openExternal.js');
Copy link
Contributor Author

@luclu luclu Nov 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is rather weird, not sure how this (https://github.com/ethereum/mist/commits/develop/modules/preloader/browser.js) happened. Very important to fix this ASAP!

require('../openExternal.js');
require('./include/getFavicon.js');
require('./include/getMetaTags.js');
require('./include/openExternal.js');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It only happened on these two files as I compared all manually.


const SocketBase = require('./base'),
Socket = SocketBase.Socket,
STATE = SocketBase.STATE;
Copy link
Contributor Author

@luclu luclu Nov 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these unused variables safely be removed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets keep it for now, could be used from some other file?

Copy link
Contributor Author

@luclu luclu Nov 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I readded it for now.


const _ = global._;
const dechunker = require('../ipc/dechunker.js');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this import of the dechunker needed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

http should not use that, is it used anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's nowhere to be found within the interface dir

const net = require('net');

const _ = global._;
const dechunker = require('../ipc/dechunker.js');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...same for this one.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes can be removed from all BUT /modules/sockets/web3Base.js

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@frozeman frozeman merged commit 3ea544f into develop Nov 7, 2016
@luclu luclu deleted the luclu_electron-require branch November 7, 2016 11:31
@evertonfraga evertonfraga modified the milestone: 0.8.8 Nov 16, 2016
@lock
Copy link

lock bot commented Mar 31, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked and limited conversation to collaborators Mar 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants