Update license header and scripts (#8666)

* Update `add_license` script

* run script

* add `remove duplicate lines script` and run it

* Revert changes `English spaces`

* strip whitespaces

* Revert `GPL` in files with `apache/mit license`

* don't append `gpl license` in files with other lic

* Don't append `gpl header` in files with other lic.

* re-ran script

* include c and cpp files too

* remove duplicate header

* rebase nit
This commit is contained in:
Niklas Adolfsson
2018-06-04 10:19:50 +02:00
committed by Marek Kotewicz
parent 3d76417353
commit 98b7c07171
807 changed files with 1635 additions and 986 deletions

View File

@@ -281,7 +281,6 @@ impl<'a, 'view> Rlp<'a> where 'a: 'view {
Ok(result)
}
/// consumes slice prefix of length `len`
fn consume(bytes: &'a [u8], len: usize) -> Result<&'a [u8], DecoderError> {
match bytes.len() >= len {

View File

@@ -133,7 +133,6 @@ impl RlpStream {
self
}
/// Declare appending the list of unknown size, chainable.
pub fn begin_unbounded_list(&mut self) -> &mut RlpStream {
self.finished_list = false;
@@ -206,7 +205,6 @@ impl RlpStream {
base_size
}
/// Returns current RLP size in bytes for the data pushed into the list.
pub fn len<'a>(&'a self) -> usize {
self.estimate_size(0)