Skip to content

Conversation

@original-brownbear
Copy link
Contributor

Neither this method nor the removed class are used anymore.

@original-brownbear original-brownbear added the :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache label Jul 15, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@original-brownbear original-brownbear changed the title Scripting: Remove dead code from painless module Scripting: Remove Dead Code from Painless Module Jul 15, 2018
Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

LGTM though it should wait on @jdconrad because he is the expert here.

Copy link
Contributor

@jdconrad jdconrad left a comment

Choose a reason for hiding this comment

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

LGTM as well. writeBranch was left behind by a performance optimization that was considered unnecessary at the time. I assume StashingTokenFactory was used as part of regex parsing, but @nik9000 knows the history there better than I do.

@nik9000
Copy link
Member

nik9000 commented Jul 16, 2018

I assume StashingTokenFactory was used as part of regex parsing, but @nik9000 knows the history there better than I do.

I believe I used it for the hacks that inserted semicolons actually but you replaced my hacks with nicer parsing code.

@original-brownbear
Copy link
Contributor Author

@nik9000 @jdconrad thanks guys, this should go into 6.x too right?

@original-brownbear original-brownbear merged commit b1479bb into elastic:master Jul 16, 2018
@original-brownbear original-brownbear deleted the remove-deadcode-painless branch July 16, 2018 16:43
@jdconrad
Copy link
Contributor

@original-brownbear Yes, 6.x as well. Thanks for fixing this!

original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Jul 16, 2018
martijnvg added a commit that referenced this pull request Jul 16, 2018
* es/master: (21 commits)
  Tweaked Elasticsearch Service links for SEO
  Watcher: Store username on watch execution (#31873)
  Use correct formatting for links (#29460)
  Painless: Separate PainlessLookup into PainlessLookup and PainlessLookupBuilder (#32054)
  Scripting: Remove dead code from painless module (#32064)
  [Rollup] Replace RollupIT with a ESRestTestCase version (#31977)
  [TEST] Consistent algorithm usage (#32077)
  [Rollup] Fix duplicate field names in test (#32075)
  Ensure only parent breaker trips in unit test
  Unmute field collapsing rest tests
  Fix BWC check after backport
  [Tests] Fix failure due to changes exception message (#32036)
  Remove unused params from SSource and Walker (#31935)
  [Test] Mute MlJobIT#testDeleteJobAfterMissingAliases
  Turn off real-mem breaker in REST tests
  Turn off real-mem breaker in single node tests
  Fix broken OpenLDAP Vagrant QA test
  Cleanup Duplication in `PainlessScriptEngine` (#31991)
  SCRIPTING: Remove unused MultiSearchTemplateRequestBuilder (#32049)
  Fix compile issues introduced by merge (#32058)
  ...
martijnvg added a commit that referenced this pull request Jul 17, 2018
* es/6.x:
  Scripting: Remove dead code from painless module (#32064) (#32104)
  Painless: Move and Rename Several Methods in the lookup package (#32105)
  Bypass highlight query terms extraction on empty fields (#32090)
  Core: Backport java time date formatters (#31997)
  Switch non-x-pack to new style requests (#32106)
  SQL: allow LEFT and RIGHT as function names (#32066)
  Painless: Separate PainlessLookup into PainlessLookup and PainlessLookupBuilder (#32054)
  [test] turn on host io cache for opensuse (#32053)
  DOCS: put LIMIT 10 to the SQL query (#32065)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >non-issue v6.4.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants