Skip to content

TS-4496: Remove ink_code_md5_stringify - #686

Merged
masaori335 merged 1 commit into
apache:masterfrom
masaori335:ts-4496
Jun 8, 2016
Merged

masaori335 merged 1 commit into
apache:masterfrom
masaori335:ts-4496

Conversation

@masaori335

@masaori335 masaori335 commented Jun 1, 2016 •

Copy link
Copy Markdown
Contributor

TS-4496

  • Remove ink_code_md5_stringify
  • Remove unused functions (fileCheckSum and TSEncryptPassword)

@masaori335 masaori335 added the Core label Jun 1, 2016
@masaori335 masaori335 added this to the 7.0.0 milestone Jun 1, 2016
Comment thread mgmt/WebMgmtUtils.h Outdated
bool recordRestartCheck(const char *varName);

void fileCheckSum(char *buffer, int size, char *checksum, const size_t checksumSize);
void fileCheckSum(char *buffer, int size, char *checksum);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I could not find any call of fileCheckSum. Should we remove this too?

@zwoop

zwoop commented Jun 1, 2016

Copy link
Copy Markdown
Contributor

Yeah, I think it's fine to cleanup unused code from mgmt/Web*. We've made many efforts of nuking the Web portions of all this, so likely these are remnants that got unused.

@SolidWallOfCode

Copy link
Copy Markdown
Member

Seems reasonable to me. I checked the history and both of these seem to have been put in at the same time, although I can't imagine why both were needed.

Comment thread mgmt/api/INKMgmtAPI.cc Outdated
@@ -1865,8 +1865,7 @@ TSGetErrorMessage(TSMgmtError err_id)
tsapi TSMgmtError
TSEncryptPassword(char *passwd, char **e_passwd)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Probably better to just remove TSEncryptPassword altogether?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I agree with that. Do we need API review to remove? This looks like one of TS API.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No we don't need to do API review for the management API, only for plugin APIs.

On Jun 2, 2016, at 9:37 AM, Masaori Koshiba [email protected] wrote:

In mgmt/api/INKMgmtAPI.cc:

@@ -1865,8 +1865,7 @@ TSGetErrorMessage(TSMgmtError err_id)
tsapi TSMgmtError
TSEncryptPassword(char _passwd, char *_e_passwd)
I agree with that. Do we need API review to remove? This looks like one of TS API.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

OK, I'll just remove this.

- Remove ink_code_md5_stringify
- Remove unused functions (fileCheckSum and TSEncryptPassword)
@jpeach

jpeach commented Jun 7, 2016

Copy link
Copy Markdown
Contributor

Looks good, ship it.

@zwoop

zwoop commented Jun 7, 2016

Copy link
Copy Markdown
Contributor

[approve ci]

@atsci

atsci commented Jun 7, 2016

Copy link
Copy Markdown

@atsci

atsci commented Jun 7, 2016

Copy link
Copy Markdown

@masaori335

Copy link
Copy Markdown
Contributor Author

@masaori335
masaori335 merged commit aac5a52 into apache:master Jun 8, 2016
a-canary pushed a commit to a-canary/trafficserver that referenced this pull request Mar 7, 2018
JosiahWI pushed a commit to JosiahWI/trafficserver that referenced this pull request Jul 19, 2023
… private and also explicitly add code to avoid any copies. (apache#8888) (apache#686)

(cherry picked from commit 2f05312)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants