RustingRobot / Kea

A webtoons downloader. With GUI and everything!
MIT License
124 stars 22 forks source link

Cleanup: Removes deprecated method, style, deleted unused code #11

Closed thatrobotdev closed 3 years ago

thatrobotdev commented 3 years ago

This PR removes the deprecated WebProxy.GetDefaultProxy(); with WebRequest.DefaultWebProxy, which I think is the recommended way to use the default proxy.

I also used Visual Studio Code's automated code cleanup tool (double-checking to ensure that current code style is maintained) to remove unused code, keep consistent style, and make code more readable. This also explicitly defines some variables.

Feel free to accept some/none of this, I just wanted to send a PR with these changes to the main repo as I cleaned up the code while I was poking around at how this program works! 😄

RustingRobot commented 3 years ago

Looks good. Wasn't sure if I implemented default proxy correctly so thanks for that and I have nothing against a bit of cleaned up code.